package cn.tedu.pet.passport.controller;


import cn.tedu.pet.passport.pojo.entity.Avatar;
import cn.tedu.pet.passport.pojo.vo.RoleListItemVO;
import cn.tedu.pet.passport.service.IRoleService;
import cn.tedu.pet.passport.web.JsonResult;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;


/**
 * 处理角色相关请求的控制器
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Slf4j
@RestController
@RequestMapping("/avatar")
@Validated
@Api(tags = "07. 头像管理模块")
public class AvatarController {



//    @GetMapping("/list")
//    @ApiOperation("查询头像列表")
//
//    @ApiOperationSupport(order = 420)
//    public JsonResult list() {
//        log.debug("开始处理【查询头像列表】的请求，无参数");
//        List<Avatar> avatars =new ArrayList<>();
//        Avatar avatar =new Avatar();
//        avatar.setName("图片1");
//        avatar.setUrl("地址1");
//        return JsonResult.ok(avatars);
//    }

}